﻿/// <reference path="../common/form-base.js" />
!function ($) {
    var $ = fly
    $.box.OtherSetting = $.Class({
        name: '其它',
        needUpload:true,
        base: $.box.FormBase,
        pageFormat: ['<div id="toolbar" class=button-32  ></div>',
                    '<form id="content-block" method="post"></form>'].join(''),
        buttons: ['save'],
        saveSuccess: function () {
            $.alertAuto('保存成功');
        },
        createForm: function () {
            this.$base.createForm.apply(this, arguments);
            $.post($.box.ajaxUrl('setting', 'settingInit'), function (result) {
                page.model = result.data
                page.initFields()
            })
        }
    });

    $.doc.addClass('setting-other');
    $.Style.loadCss('../themes/box-default/setting.css');
    window.page = new $.box.OtherSetting()
    page.show();
} ()